# Generated by TAME - Test Automation Made Easy - A product of Model Compilers LLC
#
# Authoring Information
# 
#     Source File: Step 7 Sequences.xlsx
#     Author: D. Harry Beast
#     Company: TAME
#     Created Date: 5/1/2019 11:59:49 AM
#     Last Modified Date: 5/17/2020 7:57:17 PM
#
#     Date Tests Generated: 5/17/2020 9:12:01 PM
#     Date Gherkin Generated: 5/19/2020 1:16:10 PM
  
Feature: Login Demo

    A typical login page used as the initial demonstration of TAME.

  Scenario: Logged Out Homepage
      Given I am on the logged out homepage
        And there is a user in good standing with ID gary@tametest.net
        And the user gary@tametest.net has password Test.123
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I type "gary@tametest.net" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then the login is successful. I'm taken to the logged in homepage

       When I click the Hello link in the upper right corner, then select the Log Out menu item
       Then I am on the logged out homepage

  Scenario: Bad Login Error (User's Password=wrong password)
      Given I am on the logged out homepage
        And there is a user in good standing with ID gary@tametest.net
        And the user gary@tametest.net does not have password Bad-456
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I type "gary@tametest.net" into the User ID field
        And I type "Bad-456" into the Password field
        And I click the blue Log In button
       Then I am told that I can't log in

  Scenario: Bad Login Error (User=no user with this ID)
      Given I am on the logged out homepage
        And there is no user with ID charlie@tametest.net
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I type "charlie@tametest.net" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told that I can't log in

  Scenario: User ID not email error
      Given I am on the logged out homepage
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I type "not_an_email" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told the User ID is not in the form of an email address

  Scenario: Missing User ID Error
      Given I am on the logged out homepage
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I leave the User ID blank
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told the User ID is required

  Scenario: Missing Password Error
      Given I am on the logged out homepage
       When I click the Log In link in the upper right corner
       Then I am on the Login page

       When I type "gary@tametest.net" into the User ID field
        And I leave the Password blank
        And I click the blue Log In button
       Then I am told the Password is required
